package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 支付优惠对象 order_promotion
 *
 * @author HYANFENG
 * @date 2021-03-17
 */
@TableName("order_promotion")
public class OrderPromotion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;
    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;
    /** 优惠类型 */
    @Excel(name = "优惠类型")
    private String promoType;
    /** 优惠类型编码 */
    @Excel(name = "优惠类型编码")
    private String promoCode;
    /** 优惠⾦额 */
    @Excel(name = "优惠⾦额")
    private Long promoAmount;
    /** 优惠token，如会员 卡⽀付token */
    @Excel(name = "优惠token，如会员 卡⽀付token")
    private String promoToken;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setPromoType(String promoType)
    {
        this.promoType = promoType;
    }

    public String getPromoType()
    {
        return promoType;
    }
    public void setPromoCode(String promoCode)
    {
        this.promoCode = promoCode;
    }

    public String getPromoCode()
    {
        return promoCode;
    }

    public Long getPromoAmount() {
        return promoAmount;
    }

    public void setPromoAmount(Long promoAmount) {
        this.promoAmount = promoAmount;
    }

    public void setPromoToken(String promoToken)
    {
        this.promoToken = promoToken;
    }

    public String getPromoToken()
    {
        return promoToken;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("promoType", getPromoType())
            .append("promoCode", getPromoCode())
            .append("promoAmount", getPromoAmount())
            .append("promoToken", getPromoToken())
            .toString();
    }
}
